<script setup lang="ts"></script>

<template>
  <div class="search-box">
    <input placeholder="搜索" class="search" />
    <button class="btn-search">搜索</button>
  </div>
</template>

<style scoped lang="scss">
.search-box {
  display: flex;
  margin: 0 0 32px;
  min-width: 360px;
  height: 48px;
  width: 80%;
  justify-content: center;
  position: relative;

  .search {
    width: 100%;
    border-radius: 40px;
    display: flex;
    padding: 4px 104px 4px 24px;
    border: 2px solid $redPressed;
  }

  .btn-search {
    position: absolute;
    right: 4px;
    height: 40px;
    justify-content: center;
    top: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: $redFont;
    border: none;
    border-radius: 30px;
    color: white;
    width: 96px;
    font-size: 20px;
    font-weight: 800;
  }
}
</style>
